import { Schema } from "mongoose";

const followSchema = new Schema({
  user: {
    type: Schema.Types.ObjectId,
    required: true,
    ref: "User",
  },
  follow: {
    type: Schema.Types.ObjectId,
    required: true,
    ref: "User",
  },
  createTime: { type: Date, default: Date.now },
});

export default followSchema;
